package com.xuecheng.teaching.agent;

import com.xuecheng.common.constant.XcFeignServiceNameList;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author by luZhongYao
 * @Date 2021/12/27
 * @Description
 */
@FeignClient(value = XcFeignServiceNameList.XC_LEARNING_SERVICE)
public interface LearningApiAgent {

    @GetMapping("/learning/personCount")
    Integer getCount(@RequestParam Long coursePubId);
}
